<?php
/**
 * This file is part of PHPlaza (http://code.google.com/p/phplaza)
 * This file is licensed under the GNU Lesser General Public License
 *      http://www.gnu.org/licenses/lgpl.html
 *
 * No warranty is given, express or implied. Use at your own risk.
 */

namespace core::components;
class TextComponent extends Component
{
    private $text;
    
    public function setText($text)
    {
        $this->text = $text;
    }
    
    public function getText()
    {
        return $this->text;
    }
    
    public function _getState(State $state)
    {
    	$state->Text = $this->text;
    }
    
    public function _setState(State $state)
    {
    	$this->text = $state->Text;
    }
}